package com.zhu.model.inventoryRecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhu.model.BaseVM;
import com.zhu.model.inventory.InventoryVM;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author JoyBoyZH
 * @description 入库模型
 * @date 2022/6/3
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("出入库记录信息模型")
public class InventoryRecordVM extends BaseVM {
    @ApiModelProperty(value = "仓库名属性说明",hidden = false)
    private String warehouseName;
    @ApiModelProperty(value = "用户名属性说明",hidden = false)
    private String realName;
    @ApiModelProperty(value = "来源属性说明",hidden = false)
    private String source;
    @ApiModelProperty(value = "备注属性说明",hidden = false)
    private String remark;
    @ApiModelProperty(value = "出入库时间属性说明",hidden = false)

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    @ApiModelProperty(value = "出入库商品列表属性说明",hidden = false)
    private List<InventoryVM> inventoryVMList;
}
